package test;

/**
 * Created by liuteng on 15-6-10.
 */
public class JavaBreak {
    public static void main(String[] args) {
        int count = 0;
        end:
        for (int i = 0; i < 10; i++) {
            System.out.println("---------" + count++ + "---------");
            for (int j = 0; j < 10; j++) {
                System.out.println("---------" + count++ + "---------");
                for (int k = 0; k < 10; k++) {
                    if (k == 2) {
                        break end;
                    }
                    System.out.println("---------" + count++ + "---------");
                }
            }
        }
    }
}
